package com.jh.paymentchannel.repository;

import com.jh.paymentchannel.pojo.CongMingOrderQuery;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CongMingOrderQueryRepository extends JpaRepository<CongMingOrderQuery, Long>, JpaSpecificationExecutor<CongMingOrderQuery> {
    @Query("select c from CongMingOrderQuery c where c.orderId = :orderId")
    CongMingOrderQuery queryByOrderId(@Param("orderId") String orderId);
}
